/*
 * @Author: Baishui
 * @Date: 2021-10-08 16:03:42
 * @LastEditors: Baishui
 * @LastEditTime: 2021-10-08 16:07:17
 * @Description: file content
 */
import { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: '/home',
    // TODO component 不能用import xx from xx，报错  Cannot access 'Layout' before initialization
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: '/home',
        name: 'Home',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '首页',
        },
      },
    ],
  },
]

export default routes
